package vip.xiaonuo.bi.modular.dataset.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * <p>
 *   数据文件夹实体类
 * </p>
 *
 * @author 顾育司
 * @since 2022-12-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="DatasetGroup对象", description="")
public class DatasetFolder{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
      @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "父级ID")
    private String pid;

    @ApiModelProperty(value = "租户ID")
    private String tenantId;


    @ApiModelProperty(value = "是否默认分组：0为不是 1为是")
    private Integer isDefault;

    @TableField(exist = false)
    @ApiModelProperty(value = "分组节点")
    private List<Object> children; // 文件夹DatasetFolder.class和文件Dataset.class

//    @TableField(exist = false)
//    @ApiModelProperty(value = "无作用")
//    private List<Dataset> data; // 暂时弃用
}
